package vip.sweet.biz.modular.expert.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.sweet.biz.modular.expert.entity.BizExpertSpecialties;
import vip.sweet.biz.modular.expert.mapper.BizExpertSpecialtiesMapper;
import vip.sweet.biz.modular.expert.params.BizExpertSpecialtiesAddParams;
import vip.sweet.biz.modular.expert.service.BizExpertSpecialtiesService;

/**
 * @author ASUS
 * @Date 2025/10/5 11:11
 * @Descripition
 */
@Service
public class BizExpertSpecialtiesServiceImpl extends ServiceImpl<BizExpertSpecialtiesMapper, BizExpertSpecialties> implements BizExpertSpecialtiesService {
    @Override
    public boolean add(BizExpertSpecialtiesAddParams bizExpertSpecialtiesAddParams) {
        if (ObjectUtil.isNotEmpty(bizExpertSpecialtiesAddParams))
            return save(BeanUtil.toBean(bizExpertSpecialtiesAddParams, BizExpertSpecialties.class));
        return false;
    }
}
